home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-30 | 2.2 KB | 141 lines | [TEXT/CWIE] |
- { DModalStuffData.p -- data container class for Everything}
-
- Unit DModalStuffData;
- Interface
-
- Uses
- Types,
- OSUtils,
-
-
- AMSignaler;
-
- const
- idTools2 = longint ('Too2');
- idFromValuesList3 = longint ('Fro3');
- idFromMenu2 = longint ('Fro4');
- idTextList2 = longint ('Tex4');
-
- type
- {----------}
- DModalStuffData = object (AMSignaler)
-
- {data members}
- mTools2: SInt16;
- mFromValuesList3: SInt16;
- mFromMenu2: SInt16;
- mTextList2: SInt16;
-
- {methods}
- Procedure Initialize; Override;
-
- Function GetTools2: SInt16;
- Procedure SetTools2 (inValue: SInt16);
- Function GetFromValuesList3: SInt16;
- Procedure SetFromValuesList3 (inValue: SInt16);
- Function GetFromMenu2: SInt16;
- Procedure SetFromMenu2 (inValue: SInt16);
- Function GetTextList2: SInt16;
- Procedure SetTextList2 (inValue: SInt16);
- end;
-
- {----------}
- Function NewDModalStuffData: DModalStuffData;
-
- {----------}
- Implementation
-
- {----------}
- Function NewDModalStuffData: DModalStuffData;
- var
- data: DModalStuffData;
- begin
- data := nil;
- New (data);
- if data <> nil then begin
- data.Initialize;
- end;
- NewDModalStuffData := data;
- end;
-
- {----------}
- Procedure DModalStuffData.Initialize;
- begin
- inherited Initialize;
-
- mTools2 := 0;
- mFromValuesList3 := 0;
- mFromMenu2 := 0;
- mTextList2 := 0;
- end;
-
- {----------}
- Function DModalStuffData.GetTools2: SInt16;
- begin
- GetTools2 := mTools2;
-
-
- end;
-
- Procedure DModalStuffData.SetTools2 (
- inValue: SInt16);
- begin
- mTools2 := inValue;
-
-
- SignalDataChanged (idTools2);
- end;
-
- {----------}
- Function DModalStuffData.GetFromValuesList3: SInt16;
- begin
- GetFromValuesList3 := mFromValuesList3;
-
-
- end;
-
- Procedure DModalStuffData.SetFromValuesList3 (
- inValue: SInt16);
- begin
- mFromValuesList3 := inValue;
-
-
- SignalDataChanged (idFromValuesList3);
- end;
-
- {----------}
- Function DModalStuffData.GetFromMenu2: SInt16;
- begin
- GetFromMenu2 := mFromMenu2;
-
-
- end;
-
- Procedure DModalStuffData.SetFromMenu2 (
- inValue: SInt16);
- begin
- mFromMenu2 := inValue;
-
-
- SignalDataChanged (idFromMenu2);
- end;
-
- {----------}
- Function DModalStuffData.GetTextList2: SInt16;
- begin
- GetTextList2 := mTextList2;
-
-
- end;
-
- Procedure DModalStuffData.SetTextList2 (
- inValue: SInt16);
- begin
- mTextList2 := inValue;
-
-
- SignalDataChanged (idTextList2);
- end;
-
- end.
-